<?php
/* @var $this LoginController */
/* @var $model LoginForm */
/* @var $form CActiveForm  */
?>

<?php $form=$this->beginWidget('CActiveForm', array(
    'id'=>'form-register',
    'enableAjaxValidation'=>true,
    'action'=> Yii::app()->createUrl("login"),
    'htmlOptions'=>array(
        'class'=>'register',
    ),
)); ?>
    <h3>Daftar</h3>
    <div class="column">
        <div>
            <label>Nama Depan:</label>
            <input type="text" />
            <span class="error">This is an error</span>
        </div>
        <div>
            <label>Nama Belakang:</label>
            <input type="text" />
            <span class="error">This is an error</span>
        </div>
        <div>
            <label>Website:</label>
            <input type="text" value="http://"/>
            <span class="error">This is an error</span>
        </div>
    </div>
    <div class="column">
        <div>
            <label>Username:</label>
            <input type="text"/>
            <span class="error">This is an error</span>
        </div>
        <div>
            <label>Email:</label>
            <input type="text" />
            <span class="error">This is an error</span>
        </div>
        <div>
            <label>Password:</label>
            <input type="password" />
            <span class="error">This is an error</span>
        </div>
    </div>
    <div class="bottom">
        <input type="submit" value="Daftar" />
        <a href="#" rel="login" class="linkform">Anda sudah terdaftar? Masuk</a>
        <div class="clear"></div>
    </div>
<?php $this->endWidget(); ?>
<?php $form=$this->beginWidget('CActiveForm', array(
    'id'=>'form-login',
    'enableAjaxValidation'=>true,
    'action'=> Yii::app()->createUrl("login"),
    'htmlOptions'=>array(
        'class'=>'login active',
    ),
)); ?>
    <h3>Masuk</h3>
    <div>
        <?php echo $form->labelEx($model,'username'); ?>
		<?php echo $form->textField($model,'username'); ?>
		<?php echo $form->error($model,'username'); ?>
    </div>
    <div>
        <?php echo $form->labelEx($model,'password'); ?>
		<?php echo $form->passwordField($model,'password'); ?>
		<?php echo $form->error($model,'password'); ?>
    </div>
    <div class="bottom">
        <div class="remember">
		<?php echo $form->checkBox($model,'rememberMe'); ?>
		<span>Ingat saya</span>
		<?php echo $form->error($model,'rememberMe'); ?>
		</div>
        <input type="submit" value="Login"/>
        <a href="#" rel="forgot_password" class="linkform">Lupa password?</a>
        <a href="#" rel="register" class="linkform">Pegawai baru? Daftar disini</a>
        <div class="clear"></div>
    </div>
<?php $this->endWidget(); ?>

<?php $form=$this->beginWidget('CActiveForm', array(
    'id'=>'form-forgot',
    'enableAjaxValidation'=>true,
    'action'=> Yii::app()->createUrl("login"),
    'htmlOptions'=>array(
        'class'=>'forgot_password',
    ),
)); ?>
    <h3>Lupa Password</h3>
    <div>
        <label>Username atau Email:</label>
        <input type="text" />
        <span class="error">This is an error</span>
    </div>
    <div class="bottom">
        <input type="submit" value="Send reminder"/>
        <a href="#" rel="login" class="linkform">Masuk</a>
        <a href="#" rel="register" class="linkform">Belum terdaftar? Daftar disini</a>
        <div class="clear"></div>
    </div>
<?php $this->endWidget(); ?>
